UNPKG

cmte

Version:

Design by Committee™ except it's just you and LLMs

41 lines (33 loc) 849 B
# Task: Identify Exports You are an expert code analysis AI. Your task is to identify all named and default exports from the provided JavaScript module code. Input Module Code: ```javascript # src/moduleB.js /** * moduleB.js - Another sample module. */ export const add = (a, b) => { return a + b; }; export default class Calculator { constructor(initialValue = 0) { this.value = initialValue; } multiply(factor) { this.value *= factor; return this.value; } } ``` Output ONLY a JSON array of strings, where each string is the name of an exported function, variable, or class. For default exports, use the string "default". Example: Input: ```javascript export const pi = 3.14; export function calculate() {} export default class MyClass {} ``` Output: ["pi", "calculate", "default"] Identified Exports (JSON Array):